package pl.kaczmarz.audiosteganography;


/**
 *
 * @author Pawel
 */
public class UnexpectedValueException extends Exception {

	private String fileName;
	private int offset;
	private String expectedValue;
	private String wrongValue;

	public String getExpectedValue() {
		return expectedValue;
	}

	public String getFileName() {
		return fileName;
	}

	public int getOffset() {
		return offset;
	}

	public String getWrongValue() {
		return wrongValue;
	}

	public UnexpectedValueException(String fileName, int offset, String wrongValue, String expectedValue) {
		this.fileName = fileName;
		this.offset = offset;
		this.expectedValue = expectedValue;
		this.wrongValue = wrongValue;
	}

	@Override
	public String getMessage() {
		return getFileName() + ":" + getOffset() + "\n" + "Wrong value: " + getWrongValue() + "\nExpected: " + getExpectedValue();
	}
}
